@*
* Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0
* See accompanying LICENSE file.
*@
@(cluster: String, clusterView: kafka.manager.model.ActorModel.CMView
)(implicit af: features.ApplicationFeatures, messages: play.api.i18n.Messages, request:RequestHeader)

<div class="card">
    <div class="card-header"><h3>Cluster Information</h3></div>
    <div class="card-body">
    <table class="table">
        <tbody>
        @features.app(features.KMClusterManagerFeature) {
        <tr>
            <td><b>Zookeepers</b></td><td>@clusterView.clusterContext.config.curatorConfig.zkConnect.replace(","," ")</td>
        </tr>
        }
        <tr>
            <td><b>Version</b></td><td>@clusterView.clusterContext.config.version.toString</td>
        </tr>
        </tbody>
    </table>
    </div>
</div>
<div class="card">
    <div class="card-header"><h3>Cluster Summary</h3></div>
    <div class="card-body">
    <table class="table">
        <tbody>
        <tr>
            <td><b>Topics</b></td><td><a href="@routes.Topic.topics(cluster)">@clusterView.topicsCount</a></td>
            <td><b>Brokers</b></td><td><a href="@routes.Cluster.brokers(cluster)">@clusterView.brokersCount</a></td>
        </tr>
        </tbody>
    </table>
    </div>
</div>
